package com.yl.auth.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 *
 * </p>
 *
 * @author ln
 * @since 2023-06-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "楼层管理")
public class Louceng implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("主键id")
    private Long id;

    /**
     * 楼层 1一楼 2 二楼 3三楼 等等
     */
    @ApiModelProperty("楼层")
    private String name;

    /**
     * 创建人id
     */
    @ApiModelProperty("主键id")
    private Long adminId;

    /**
     * 创建人cjname
     */
    @ApiModelProperty("创建人")
    private String cjname;

    /**
     * 创建时间
     */

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @ApiModelProperty("创建时间")
    private LocalDateTime createDate;
    private Long wei;
    private Long ceng;

    /**
     * 楼栋id
     */
    @ApiModelProperty("楼栋id")
    private Integer pid;
    /**
     * 统计房间数
     */
    @TableField(exist = false)
    @ApiModelProperty("房间数")
    private Integer count;
    @TableField(exist = false)
    @ApiModelProperty("创始人姓名")
    private String adminname;
}